package com.example.zhinongbao.view;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import com.example.zhinongbao.R;


public class MessageFragment extends Fragment {
    private View message_fragment ;
    private LinearLayout wodefankui;
    private LinearLayout wodefankui2;
    private LinearLayout wodefankui3;
    private LinearLayout wodefankui4;

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

    }

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        if (message_fragment == null){
            message_fragment = inflater.inflate(R.layout.message_fragment01, container , false);
        }
        wodefankui=message_fragment.findViewById(R.id.enter_my_feedback);
        wodefankui2=message_fragment.findViewById(R.id.enter_my_feedback2);
        wodefankui3=message_fragment.findViewById(R.id.enter_my_feedback3);
        wodefankui4=message_fragment.findViewById(R.id.enter_my_feedback4);
        wodefankui.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(getContext(), MessageInformationActivity.class);
                startActivity(intent);
            }
        });
        wodefankui2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(getContext(), MessageInformationActivity.class);
                startActivity(intent);
            }
        });
        wodefankui3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(getContext(), MessageInformationActivity.class);
                startActivity(intent);
            }
        });
        wodefankui4.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent=new Intent(getContext(), MessageInformationActivity.class);
                startActivity(intent);
            }
        });


        return message_fragment ;
    }
}
